package com.nest.WorkNest.adapter;

import java.util.ArrayList;

import com.nest.WorkNest.R;
import com.nest.WorkNest.view.wheelcity.adapter.AbstractWheelTextAdapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

public class DateAdapter extends AbstractWheelTextAdapter {
	private ArrayList<String> date;

	public DateAdapter(Context context, ArrayList<String> date) {
		super(context, R.layout.wheel_item, NO_RESOURCE);
		setItemTextResource(R.id.city_name);
		this.date = date;
	}

	@Override
	public View getItem(int index, View cachedView, ViewGroup parent) {
		View view = super.getItem(index, cachedView, parent);
		return view;
	}

	@Override
	public int getItemsCount() {
		return date.size();
	}

	@Override
	protected CharSequence getItemText(int index) {
		return date.get(index);
	}

}
